package com.yuliang.controller;


import com.yuliang.dao.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {


    @RequestMapping("/test1")
    @ResponseBody
    public User test1(){
        User user = new User();
        user.setName("yuliang");
        user.setAge(20);
        return user;
    }
}
